package com.sjjy.ta.action;

import com.sjjy.ta.form.UserInfoForm;
import com.sjjy.ta.iface.UserInfoService;
import com.sys.plat.bean.PageBean;
import com.sys.plat.util.HttpUtil;
import com.sys.plat.web.core.ActionContext;
import com.sys.plat.web.core.BaseAction;

/**
 * Created by IntelliJ IDEA.
 * User: mabo
 * Date: 11-3-10
 * Time: 下午11:44
 * To change this template use File | Settings | File Templates.
 */
public class UserInfoAction extends BaseAction{

    private UserInfoForm getForm() {
        return  (UserInfoForm) ActionContext.getForm();
    }

    private UserInfoService getService() {
        return (UserInfoService) getService("UserInfoImpl");
    }

    public String list() {
        PageBean pb = createPageBean(getForm());
        getService().fine(pb);
        pb.setToWeb();
        HttpUtil.saveSearchParemeter();
        HttpUtil.reqSetAttr("fmap",pb.getFiltermap());
        return "list";
    }
}
